<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <link rel="stylesheet" href="{{asset('assets/bootstrap-daterangepicker/css/daterangepicker.css')}}">
	<script src="{{asset('/js/jquery-3.2.1.min.js')}}"></script>
    <script src="{{asset('/js/moment-with-locales.min.js')}}"></script>
    <script src="{{asset('/js/bootstrap-datetimepicker.js')}}"></script>
    <link rel="stylesheet" href="{{asset('/css/bootstrap-datetimepicker.min.css')}}">
    <script src="{{asset('/js/bootstrap-datetimepicker.zh-CN.js')}}"></script>
    <script src="{{asset('/js/jquery-form.js')}}"></script>
    <script src="{{asset('/js/layer/layer.js')}}"></script>
    {{--引用echarts.js用来制作统计图表--}}
    <script src="{{asset('/js/echarts/echarts.js')}}"></script>
    {{--多功能jQuery日期控件--}}
    <script type="text/javascript" src="{{asset('/js/jeDate/jedate.js')}}"></script>
    {{--<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->--}}
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <!-- 自己的页面布局的css   start-->
    <link rel="stylesheet" href="{{asset('/css/admin/admin_master.css')}}"> @yield('css')
    <!-- 自己的页面布局的css   end-->
    <title>@yield('title','熊猫立方后台管理系统')</title>
</head>
<body>
<!-- 整个页面包裹在一个容器里 -->
<div class="container clearfix">
    <!-- 左边的功能导航条 -->
    <div class="leftbar clearfix">
        <!-- logo所在区域 -->
        <div class="nav_logo clearfix">
            <a href=""><img src="{{asset('images/xm_icon.png')}}" alt=""></a>
        </div>
        <!-- =====左边菜单所在的区域===== start-->
        <div class="mainleft_list clearfix">
            {{--层级佚式--}}
			@if(Auth::guard('admin')->user()->checkPermission('goods.list')) 
            <div class="navlist goods_manage">
                <a  href="{{url('/admin/commodity')}}">商品管理</a>
            </div>
			@endif
			@if(Auth::guard('admin')->user()->checkPermission('goodsClass.list')) 
            <div class="navlist goods_classify">
                <a  href="{{url('/admin/classification')}}">商品分类</a>
            </div>
			@endif
			@if(Auth::guard('admin')->user()->checkPermission('rfid.list')) 
            <div class="navlist rfid_manage">

                <a  href="{{url('/admin/rfidmanage')}}">RFID管理</a>
            </div>
			@endif
			@if(Auth::guard('admin')->user()->checkPermission('order.list')) 
            <div class="navlist order_manage">
                <a  href="{{url('/admin/order')}}">订单管理</a>
            </div>
			@endif
			@if(Auth::guard('admin')->user()->checkPermission('vip.list')) 
            <div class="navlist vip_manage">
                <a  href="{{url('/admin/vip')}}">会员管理</a>
            </div>
			@endif
			@if(Auth::guard('admin')->user()->checkPermission('shop')) 
            <div class="navlist shop_manage">
                <a href="{{url('/admin/shop')}}">店铺管理</a>
            </div>
			@endif
            <div class="navlist yunyin_manage">
                <a href="{{url('/admin/operation')}}">运营管理</a>
            </div>
			@if(Auth::guard('admin')->user()->isSuperAdmin())
            <div class="navlist system_manage">
                <a href="{{url('/admin/user')}}">系统管理</a>
            </div>
			@endif
        </div>
        <!-- ======左边菜单所在的区域==== end-->
    </div>
    <!-- 右边的内容区 -->
    <div class="main clearfix">
        <div class="main_bj clearfix">
            <img src="{{asset('images/navbj_icon.png')}}" alt="">
        </div>
        <!-- 右边内容的主要的区域 -->
        <div class="main_all clearfix">
            <div class="main_nav clearfix">
                <!-- ======导航条头部 start===== -->
                <div class="main_litter_nav clearfix">
                    <ul>
                        {{--<li class="litter_one">--}}
                            {{--<a href="">--}}
                                {{--<img src="{{asset('images/notice_icon.png')}}" alt="">--}}
                            {{--</a>--}}
                        {{--</li>--}}
                        <li class="litter_two clearfix">
                            <a href=""><img src="{{asset('images/people.jpg')}}" alt=""></a>
                        </li>
                        <li class="litter_three clearfix">
                            {{--{{Session::get('admin_user.name')}}--}}
                            <a href="{{url('/admin/logout')}}">
                                <span>登出</span>
                                <img src="{{asset('images/logout_icon.png')}}" alt="">
                            </a>
                        </li>
                    </ul>
                </div>
                <!-- ======搜索框所在的区域===== -->
                @yield('content')
        </div>

    </div>
</div>
</div>
<script src="{{asset('js/bootstrap-validator/dist/validator.min.js')}}"></script>
<script src="{{asset('assets/bootstrap-daterangepicker/js/moment.min.js')}}"></script>
<script src="{{asset('assets/bootstrap-daterangepicker/js/daterangepicker.js')}}"></script>
@yield('js')
</body>
</html>
